#pragma once

#include "Panel.h"

#define STATIC_TEXT_MAX_LENGTH 256

class StaticText : public Panel
{
	public:

		StaticText( Widget* pxParent );
		virtual ~StaticText();
	
		virtual void		Render			( );

		virtual bool		CanHaveChildren	( ) { return false; }

		virtual void		SetText( const char* szText );
		virtual void		SetTextColour( const unsigned int uColour ) { m_uTextColour = uColour; }

		virtual void		SetAutoSizes( const bool bAutoSizes );

	protected:

		virtual void		UpdateAutoSize();

		char m_szText[STATIC_TEXT_MAX_LENGTH];
		unsigned int m_uTextColour;
		bool m_bAutoSizes;

};